package com.lxw.study.structural.decorator.case2;

public class Client {
    public static void main(String[] args) {
        // 创建一个圆形
        Shape circle = new Circle();

        // 为圆形添加边框
        Shape borderedCircle = new BorderDecorator(circle);
        borderedCircle.draw();

        System.out.println();

        // 创建一个矩形
        Shape rectangle = new Rectangle();

        // 为矩形添加颜色
        Shape coloredRectangle = new ColorDecorator(rectangle, "Red");
        coloredRectangle.draw();


    }
}
